body { 
    margin: 0; 
    overflow: hidden; 
    background: #000; 
}

#game { 
    width: 100vw; 
    height: 100vh; 
    display: block;  /* 确保 canvas 正确显示 */
}

#room-ui {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    color: white;
    font-family: Arial, sans-serif;
    z-index: 1000;
}

.room-input {
    padding: 8px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    background: #333;
    color: white;
}

.room-button {
    padding: 8px 16px;
    margin: 5px;
    background: #4a9eff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.room-button:hover {
    background: #357abd;
} 